from django.conf.urls.defaults import *

urlpatterns = patterns('forum.views',
    url(r"^$", 'list_groups'),
    
    url(r"^register/$", 'register'),
    
    url(r"^(?P<group>[-\w]+)/$", 'list_threads'),
    url(r"^(?P<group>[-\w]+)/thread/(?P<thread_id>\d+)/$", 'details_thread'),
    url(r"^(?P<group>[-\w]+)/add_thread/$", 'add_thread'),
    

    
    )
